ls -l > seeold.log

for ii in $(find *.root -type l)
do
    unlink $ii
done

echo
ls
echo

for ii in $(echo ../../cmpEta*GrID*{0,5}/*/Com* ../../../directETAall/histRec*/*directMC_id*0.root)
do
    if [ -e $ii ]
    then
        b0=$(basename $ii)
        d0=$(dirname $ii)
        b1=$(basename $d0)
        d1=$(dirname $d0)
        b2=$(basename $d1)
        
        ff=$b2\_$b1\_$b0
#        echo 
        echo $ff
#        echo
        ln -s $ii $ff
    fi

done
